<template>
  <view :style="themeColor">
    <view class="page">
      <view
        class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex contact_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-stretch justify-between contact_fd0_0'>
          <view class='flex flex-wrap align-center contact_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  contact_fd0_0_c0_c0'>&#xe794;</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='contact_fd0_0_c1_c0'>联系我们</text>
          </view>
          <view class='flex align-center justify-end contact_fd0_0_c2'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---版本flex布局开始-->
      <view class="flex flex-direction flex-wrap align-center">
        <image class='contact_fd1_0' mode="aspectFit"  src='../../../static/images/6123.png'></image>
        <view class='flex flex-wrap align-center contact_fd1_1'>
          <text class='contact_fd1_1_c0'>{{kefu || '暂无'}}</text>
        </view>
        
        <button class='contact_fd1_3' style="margin-top: 50rpx;" @tap="callService">拨打电话</button>
      </view>

      <!---版本flex布局结束-->


    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        kefu:'66861234'
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },
			isLogin() {
				return this.$store.state.token == '' ? false : true;
			},

    },
    watch: {},
    onLoad(options) {
			if(this.isLogin){
				this.kefu=uni.getStorageSync('kefu')
			}
      
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      callService() {
        uni.makePhoneCall({
          phoneNumber: this.kefu
        });
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #fff;
    background-size: 100% auto;
  }

  .contact_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .contact_fd0_0_c2 {
    padding: 0rpx 0rpx 0rpx 0rpx;
    width: 100rpx;
  }

  .contact_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: var(--benbenFontColor0);
    line-height: 50rpx;
  }

  .contact_fd0_0_c0_c0 {
    font-size: 36rpx;
    font-weight: 400;
    color: #333;
  }

  .contact_fd0_0_c0 {
    width: 100rpx;
  }

  .contact_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .contact_fd1_3 {
    background: #167deb;
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    width: 638rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: #fff;
    height: 88rpx;
    font-weight: 500;
  }

  .contact_fd1_2 {
    color: #999999;
    font-size: 26rpx;
    font-weight: 400;
    margin: 0rpx 0rpx 94rpx 0rpx;
  }

  .contact_fd1_1_c0 {
    font-weight: 700;
    color: #333333;
    font-size: 48rpx;
  }

  .contact_fd1_1 {
    margin: 0rpx 0rpx 16rpx 0rpx;
  }

  .contact_fd1_0 {
    width: 334rpx;
    height: 333rpx;
    margin: 73rpx 0rpx 048rpx 0rpx;
  }
</style>